package com.bdqn.entity;

import java.io.Serializable;

/**
 * Book
 *
 * @author LILIBO
 * @since 2024/4/27
 */
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    private int bid;
    private String bName;
    private String author;
    private String pubComp;
    private String pubDate;
    private int bCount;
    private float price;

    public Book() {
    }

    public Book(String bName, String author, String pubComp, String pubDate, int bCount, float price) {
        this.bName = bName;
        this.author = author;
        this.pubComp = pubComp;
        this.pubDate = pubDate;
        this.bCount = bCount;
        this.price = price;
    }

    public Book(int bid, String bName, String author, String pubComp, String pubDate, int bCount, float price) {
        this.bid = bid;
        this.bName = bName;
        this.author = author;
        this.pubComp = pubComp;
        this.pubDate = pubDate;
        this.bCount = bCount;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", bName='" + bName + '\'' +
                ", author='" + author + '\'' +
                ", pubComp='" + pubComp + '\'' +
                ", pubDate='" + pubDate + '\'' +
                ", bCount=" + bCount +
                ", price=" + price +
                '}';
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getbName() {
        return bName;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPubComp() {
        return pubComp;
    }

    public void setPubComp(String pubComp) {
        this.pubComp = pubComp;
    }

    public String getPubDate() {
        return pubDate;
    }

    public void setPubDate(String pubDate) {
        this.pubDate = pubDate;
    }

    public int getbCount() {
        return bCount;
    }

    public void setbCount(int bCount) {
        this.bCount = bCount;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

}
